package com.tens.tens_base;

import com.tens.tens_common.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.web.bind.annotation.CrossOrigin;

@SpringBootApplication
public class TensBaseApplication {

    public static void main(String[] args) {
        SpringApplication.run(TensBaseApplication.class, args);
    }

    @Bean
    public  IdWorker idWorker(){
        return new IdWorker(1,1);
    }

}

